package com.isoftstone.mapper;

import com.isoftstone.pojo.Users;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {
    int insertUser(Users user);
    int updateUser(Users user);

    int deleteUser(Integer id);

    List<Users> queryAllUser();
    Users queryUserByPhone(String phone);

    Users login(@Param("phone") String phone,@Param("password") String password ,@Param("photo") String photo);

    int deleteBatchUser(List<Integer> idList);
}
